package edu.sctu.jarime.may.day20150512;

/**
 * Created by user19 on 2015/5/12.
 */
public class TextTwo extends TextOne {
    public TextTwo(StudentInformation[] studentInformation) {
        super(studentInformation);
    }




    @Override
    public void output() {
        int k=0;
        for (int i=0;i<studentInformation.length;i++) {
            if (studentInformation[i].getscore() >60) {

                k++;

                System.out.println(studentInformation[i].getname() + "\t" +
                        studentInformation[i].getaddress() + "\t" +
                        studentInformation[i].getscore() + "\t" +
                        studentInformation[i].getsex() + "\t" +
                        studentInformation[i].getage());


            }
        }
        System.out.println("分数大于60的有"+k+"个");


    }
//
//    int number;
//    StringOne name;
//    StringOne ID;
//
//
//    public TextTwo(int number,StringOne name,StringOne ID){
//        this.number=number;
//        this.ID=ID;
//        this.name=name;
//
//    }
//
//
//    @Override
//    public void information() {
//        System.out.println(number);
//    }
//
//    @Override
//    public StringOne judge() {
//
//
//        System.out.println(ID);
//        return null;
//    }
//
//    @Override
//    public void output() {
//
//        System.out.println(name);
//    }
}
